﻿using IceDog.ElasticSearchClient.MSTest.Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.ElasticSearchClient.MSTest.Providers
{
    public class SinaWeiboProvider : BaseProvider
    {
        public SinaWeiboProvider(string indexName, string type)
        {
            IndexName = indexName;
            Type = type;
        }
        /// <summary>
        /// 自定义Id的数据
        /// </summary>
        public List<SinaWeibo> customIdTestData = new List<SinaWeibo>()
        {
            new SinaWeibo
            {
                Id=1001,
                User = "nacy",
                PostDate = new DateTime(2009, 11, 15),
                Title="News1",
                Content = "There have some good news ...."
            },
            new SinaWeibo
            {
                Id=1002,
                User = "nancy",
                PostDate = new DateTime(2009, 12, 15),
                Title="News2",
                Content = "There have some super good news ...."
            },new SinaWeibo
            {
                Id=1003,
                User = "nancy",
                PostDate = new DateTime(2010, 1, 15),
                Title="News3",
                Content = "There have some very good news ...."
            },new SinaWeibo
            {
                Id=1004,
                User = "nancy",
                PostDate = new DateTime(2010, 1, 25),
                Title="News4",
                Content = "There have some bad news ...."
            },new SinaWeibo
            {
                Id=1005,
                User = "nancy",
                PostDate = new DateTime(2019, 1, 15),
                Title="News5",
                Content = "There have some very bad news ...."
            }
        };
    }
}
